<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
<%@ include file="/WEB-INF/jsp/admin/inc/taglibs.jsp"%>
	<%@ include file="/WEB-INF/jsp/admin/inc/meta.jsp"%>
		<script type="text/javascript">
$(function () {
	var tree=$("#catetree").jstree({ 
		"json_data" : {
		     "ajax" : { "url" : "${approot}/data/tree/region.txt" }  
	         //"data":${datas}       
		},
		"themes" : {
			"theme" : "classic",
			"dots" : true,
			"icons" :true
		},
		"plugins" : [ "themes", "json_data","ui"],
	})
	.bind("select_node.jstree", function(e, data) {
		var cid=data.rslt.obj.attr("id");
        //alert(cid);
		window.parent.document.getElementById("treeRight").src="${approot}/admin/${entity}/list/menu/"+cid+"/0/0";
    })
   // .bind("loaded.jstree",function(event, data){ 
   //     tree.jstree("open_all"); 
   // }); 

});

</script>

	</head>
	<body>
		<div id="catetree"></div>
		
	</body>
</html>
